import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/:catchAll(.*)',
      hidden: true,
      component: () => import('@/views/404.vue') //这个是我自己的路径
    },
    {
      path: '/',
      name: 'blank',
      component: () => import('@/views/blank.vue') // 根据实际路径修改
    },
    {
      path: '/home',
      name: 'home',
      component: HomeView,
    }
  ],
})

export default router
